package com.johndriver.selenium.selector;

import com.johndriver.selenium.utils.DriverUtil;
import org.openqa.selenium.WebDriver;

/**
 * 选择器使用例子
 * 日期 2021/5/31 16:57
 * 创建者：john driver
 */
public class SelectorExample {
    public static void main(String[] args) {
        WebDriver driver = DriverUtil.getChromeDriver("src\\main\\resources\\static\\chromedriver.exe");
        String url = "https://www.duquanben.com/paihangbang/";
        driver.manage().window().maximize();
        try {
            driver.get(url);

            System.out.println(driver.getCurrentUrl());
        }catch (Exception e){
            System.out.println(e.getMessage());
        }finally {
            driver.quit();
        }



    }
}
